package org.jctc.els.common.enums;

public enum ResultCodeEnum {
    SUCCESS(2300, "操作成功！"),
    FAIL(2301, "操作失败！"),
    TOKEN_INVALID(2310, "无效的TOKEN！"),
    ACCESS_DENIED(2311, "拒绝访问！"),
    FAIL_DELETE(2320, "删除失败！"),
    FAIL_UPDATE(2321, "更新失败！");

    private Integer code;
    private String message;
    ResultCodeEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public Integer code(){
        return this.code;
    }

    public String message(){
        return this.message;
    }
}
